cmake_minimum_required(VERSION 3.10)
project(thread)
set(CMAKE_CXX_STANDARD 11)
find_package(Threads REQUIRED)  # REQUIRED表示找不到会报错
add_executable(Main Main.cpp)
target_link_libraries(Main PRIVATE Threads::Threads)
